# 作者：薛丰坤
# 2025年06月04日23时02分35秒
# 2634661037@qq.com
class Dog(object):

    def __init__(self, name):
        self.name = name

    def game(self):
        print("%s 蹦蹦跳跳地玩耍" % self.name)


class XiaoTianQuan(Dog):
    def game(self):
        print("%s 飞到宇宙上去玩耍..." % self.name)


class Person(object):
    def __init__(self, name):
        self.name = name

    def game_with_dog(self, dog):

        print("%s 和 %s 快乐的玩耍" % (self.name, dog.name))


        dog.game()


if __name__ == '__main__':
    wangcai = Dog("旺财")
    xiaotianquan = XiaoTianQuan("哮天犬")
    xiaoming = Person("小明")
    xiaoming.game_with_dog(xiaotianquan)
